package com.life.xylife.service.account.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.life.dao.service.IGenericManager;
import com.life.xylife.model.account.vo.BdefWorkerVo;
import com.life.xylife.model.comm.bo.MsgResBo;
import com.life.xylife.service.account.IAccountService;


@Service
public class AccountServiceImpl implements IAccountService
{
	@Resource
	private IGenericManager genDao;

	public IGenericManager getGenDao() {
		return genDao;
	}

	public void setGenDao(IGenericManager genDao) {
		this.genDao = genDao;
	}
	
	
	@Override
	public MsgResBo save_verify_login(String workerNo, String pwd) throws Exception
	{
		BdefWorkerVo vo = new BdefWorkerVo();
		vo.setCardNo("");
		vo.setEnterpriseNo("0000");
		vo.setPhone("13800138000");
		vo.setPwd("123456");
		vo.setWorkerAlial("蒋总");
		vo.setWorkerName("蒋总");
//		vo.setWorkerNo(1);
		vo.setWorkerType("1");
		List list = genDao.getListByNativeSql("select name from user ");
		System.out.println("user"+list.get(0).toString());
		MsgResBo msgRes = new MsgResBo(true,"S0000-操作成功",vo);
		return msgRes;
	}

	
	@Override
	public MsgResBo deleteSessionUser() throws Exception
	{
		MsgResBo msgRes = new MsgResBo(true,"S0000-操作成功","");
		return msgRes;
	}

}
